package com.foreknow.demo2;

public class Student {
    public static void main(String[] args) {
        //学号
        int sid = 211004124;
        System.out.println(sid);
        //姓名
        String name="刘春博";
        System.out.println(name);
        //性别(char String int boolean)
        char sex='男';
        //String sex = 1;
        //boolean sex = true;
        System.out.println(sex);
        //年龄
        int age = 21;
        System.out.println(age);
        //所在学校
        String school = "沈阳城市学院" ;
        System.out.println(school);
        //地址
        String address = "辽宁省沈阳市";
        System.out.println(address);
        //花费
        float money = 5000.66f;
        System.out.println(money);
        //注意：任何基本数据类型月String（字符串）连接（+）后，最终的类型都为字符串类型
        System.out.println("学号:" + sid + "\n" + "姓名:" + name);

        String a =age + school;
        System.out.println(a);
        System.out.println(age + school);

    }
}
